package com.per.mybootall.thread;

import org.springframework.stereotype.Component;

@Component
public class MyThread2 extends Thread {
    private String name;

    public MyThread2() {
    }

    public MyThread2(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("这个继承线程运行了："+name);
    }


}
